#pragma once
#include "GameBase.h"
#include "jsonreader.h"
#include "GameScene.h"

class GameScene;
class Bullet;

class BulletFactory : public GameBase
{
private:
	LPDIRECT3DTEXTURE9 bulletTex1;
	LPDIRECT3DTEXTURE9 bulletTex2;

	jsonreader* reader;
	GameScene* scene;
	randomseed* random;
	static BulletFactory* _p_this;
	BulletFactory();
public:
	static BulletFactory* Instance();
	~BulletFactory();
	Bullet* MakeBullet(Event_struct* bulletinfo);
	Move_Vec2 MoveMake(DWORD MoveID, DWORD flag, D3DXVECTOR2 centerpos, D3DXVECTOR2 makepos);
	void SetScene(GameScene* nscene);
};
